﻿using Power.Control;
using Power.View.Dialog;
using Power.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace Power.View
{
    /// <summary>
    /// AITool.xaml 的交互逻辑
    /// </summary>
    public partial class AITool : UserControl
    {
        //private DispatcherTimer timer = new DispatcherTimer();
        //public AITool()
        //{
        //    InitializeComponent();
        //    this.DataContext = new AIToolViewModel(this);
        //}

        //private void mediaElement_MediaOpened(object sender, RoutedEventArgs e)
        //{
        //    volumeSlider.Maximum = mediaElement.NaturalDuration.TimeSpan.TotalSeconds;
        //}

        //private void volumeSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        //{
        //    //mediaElement.Play();
        //    mediaElement.Position = TimeSpan.FromSeconds(volumeSlider.Value);
        //    //mediaElement.Stop();
        //}
    }
}
